package lex.netant;

public class DownEnd extends Thread {
	boolean stop;
	boolean end, pause;

	public DownEnd() {
		stop = false;
	}

	public void run() {
		while (!stop) {
			// System.out.println("In Thread DownEnd!");
			if (Utility.bStop[0] && Utility.bStop[1] && Utility.bStop[2] && Utility.bStop[3] && Utility.bStop[4]) {
				Utility.serializeOut();
				System.out.println("Serialize...");
				NetAntMainFrame.setStopFalse();
				NetAntMainFrame.setStartTrue();
				stop = true;
			}
			/*
			 * if((Utility.nStart[0]>=Utility.nStop[0]) &&
			 * (Utility.nStart[1]>=Utility.nStop[1]) &&
			 * (Utility.nStart[2]>=Utility.nStop[2]) &&
			 * (Utility.nStart[3]>=Utility.nStop[3]) &&
			 * (Utility.nStart[4]>=Utility.nStop[4])){ Utility.deleteTempFile();
			 * System.out.println("End!"); javaants.setStopFalse();
			 * javaants.setStartTrue(); stop=true; }
			 */
		}
	}
}
